package tools;

import java.util.concurrent.ThreadFactory;

/**
 * Returns only daemon threads for tasks
 */
public class DaemonThreadFactory implements ThreadFactory{
	@Override public Thread newThread(Runnable r) {
		Thread t = new Thread(r);
		t.setDaemon(true);
		return t;
	}
}